package net.chenyan.server.enums;

import net.chenyan.commons.core.IdNameEnum;

/**
 * @author chenyan
 * @createTime 2021/1/13 11:00
 * @description description
 */
public enum ReturnBookStatus implements IdNameEnum {
    NO(1, "未归还"),

    Yes(2, "已归还");

    /**
     * int值
     */
    private int value;

    /**
     * 对应文本
     */
    private String name;

    ReturnBookStatus (int value, String name) {
        this.value = value;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public int getValue() {
        return value;
    }
}
